package com.zhuoyue.zhtj.wx.service;

import com.sun.tools.internal.jxc.apt.Const;
import com.zhuoyue.zhtj.common.Consts;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Created by kaygreen on 2017/9/15.
 */
@Service
public class WxCheckService {
    public boolean handEvent(Map map){
        if(map!=null){
            Object event=map.get(Consts.event);
            if(event!=null&&"subscribe".equals(event)){
                Object eventKey=map.get(Consts.eventKey);
                if(eventKey!=null&&"qrscene_".equals(eventKey)){
                    return true;
                }
            }
        }
        return false;
    }
}
